
package std.objectpool
import std.collection.concurrent.*


@Deprecated
@!APILevel[
    since: "22"
]
public class ObjectPool<T> where T <: Object {
    @!APILevel[
        since: "22"
    ]
    public init(newFunc: () -> T, resetFunc!: Option<(T) -> T> = None)
    
    /**
    * @throws IndexOutOfBoundsException
    */
    @!APILevel[
        since: "22",
        throwexception: true
    ]
    public func get(): T
    
    /**
    * @throws IndexOutOfBoundsException
    */
    @!APILevel[
        since: "22",
        throwexception: true
    ]
    public func put(item: T): Unit
}

